﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="ControlPanel.aspx.cs" Inherits="ControlPanel" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <a href="D:\\UB\\A03S01\\DAW\\SocialBook\\Book.xml">Export GraphML</a><br />
    (Right click or option-click the link and choose "Save As..." to download this file.)<br /><br />
    <asp:DropDownList ID="ListaRoluri" runat="server" AutoPostBack="True" DataSourceID="SursaRoluri"
        DataTextField="RoleName" DataValueField="RoleName">
    </asp:DropDownList>
    <asp:Label ID="LInfo" runat="server" Text=""></asp:Label>
    <asp:SqlDataSource ID="SursaRoluri" runat="server" ConnectionString="<%$ ConnectionStrings:ConStrDinTren %>"
        SelectCommand="SELECT [RoleName] FROM [aspnet_Roles]"></asp:SqlDataSource>
    <asp:CheckBoxList ID="CheckBoxList1" runat="server" AppendDataBoundItems="true">
        <asp:ListItem>check</asp:ListItem>
    </asp:CheckBoxList>
    <asp:Repeater ID="listare_list" runat="server" DataSourceID="Source">
        <HeaderTemplate>
            <ul>
        </HeaderTemplate>
        <ItemTemplate>
            <li>
                <%# Eval("UserName")%>
            </li>
        </ItemTemplate>
        <FooterTemplate>
            </ul>
        </FooterTemplate>
    </asp:Repeater>
    <asp:SqlDataSource ID="Source" runat="server" ConnectionString="<%$ ConnectionStrings:ConStrDinTren %>"
        UpdateCommand="" SelectCommand="SELECT aspnet_Roles.RoleId, aspnet_Roles.RoleName, aspnet_Users.UserId, aspnet_Users.UserName FROM aspnet_Roles LEFT OUTER JOIN aspnet_UsersInRoles ON aspnet_Roles.RoleId = aspnet_UsersInRoles.RoleId RIGHT OUTER JOIN aspnet_Users ON aspnet_UsersInRoles.UserId = aspnet_Users.UserId">
    </asp:SqlDataSource>
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" CellPadding="4" DataSourceID="Source" ForeColor="#333333"
        GridLines="None">
        <RowStyle BackColor="#EFF3FB" />
        <Columns>
            <asp:BoundField DataField="UserName" HeaderText="UserName" SortExpression="UserName" />
            <asp:BoundField DataField="RoleName" HeaderText="RoleName" SortExpression="RoleName" />
            <asp:CommandField ShowEditButton="True" />
            <asp:CommandField ShowSelectButton="True" />
            <asp:CommandField ShowDeleteButton="True" />
        </Columns>
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
</asp:Content>
